/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;
import java.io.IOException;

/**
 * <p>Project: javaseapp - Dir2
 * <p>Powered by webrx On 2021-08-11 09:07:50
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Dir5 {
    public static void main(String[] args) {
        //File f = new File("c:/myuser");
        File f1 = new File("c:/myuser/user.txt");
        if (!f1.exists()) {
            try {
                f1.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        //.delete() 是删除文件， 或删除空目录
        if (f1.exists()) f1.delete();

    }
}
